/**
 *
 */
package com.naiterui.ehp.bs.recommend.bean;

import javax.persistence.*;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * 预签署文件明细表
 * @author Ldl
 * @since 1.0.0
 */
@Entity
@Table(name = "recomm_prescription")
public class RecomPrescription {

    /**
     * 文件类型-未签名
     */
    public static final Integer TYPE_UNSIGN = 1;
    /**
     * 文件类型-医师签名
     */
    public static final Integer TYPE_DOCTOR_SIGN = 2;
    /**
     * 文件类型-药师签名
     */
    public static final Integer TYPE_PHARMACIST_SIGN = 3;
    /**
     * 文件类型-调配药师签名
     */
    public static final Integer TYPE_AL_PHARMACIST_SIGN = 4;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    private Long id;
    @Column(name = "recommend_id")
    private Long recommendId;
    @Column(name = "prescription_photo_name")
    private String prescriptionPhotoName;
    @Column(name = "prescription_photo_url")
    private String prescriptionPhotoUrl;
    @Column(name = "type")
    private Integer type;
    @Column(name = "created_at")
    private Date createdAt;
    @Version
    private Integer version;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRecommendId() {
        return recommendId;
    }

    public void setRecommendId(Long recommendId) {
        this.recommendId = recommendId;
    }

    public String getPrescriptionPhotoName() {
        return prescriptionPhotoName;
    }

    public void setPrescriptionPhotoName(String prescriptionPhotoName) {
        this.prescriptionPhotoName = prescriptionPhotoName;
    }

    public String getPrescriptionPhotoUrl() {
        return prescriptionPhotoUrl;
    }

    public void setPrescriptionPhotoUrl(String prescriptionPhotoUrl) {
        this.prescriptionPhotoUrl = prescriptionPhotoUrl;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
